package com.itheima.stock.controller;

import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author byzhao
 * @version 1.0
 * @description 股票表现层
 * @date 2022/10/12 16:08:18
 */
@RestController
@RequestMapping(path = "/api/quot/stock")
public class StockController {

    @Autowired
    private StockService stockService;

    @GetMapping(path = "/business/all")
    public List<StockBusiness> getAllStockBusinesses(){
        return stockService.getAllStockBusiness();
    }

}
